FROM dev.k2data.com.cn:5001/isuper/java-oracle:jdk_7
# RUN rm -Rf /var/lib/apt/lists/*
# ADD sources.list.trusty /etc/apt/sources.list
# RUN apt-get clean && apt-get update --fix-missing && apt-get install -y python
# RUN apt-get install -y mysql-client-5.6
# RUN apt-get install -y time bc

WORKDIR /opt/data

ADD target/kstream.jar /opt/data/kstream.jar

ENTRYPOINT ["java", "-cp", "kstream.jar", "com.k2data.processors.KmxTopology"]
CMD []

ARG branch
ARG commit
ARG buildtime
ARG owner
LABEL branch=$branch \
        commit=$commit \
        buildtime=$buildtime \
        owner=$owner
